package com.shuai.tool;

public class IDManager {
    private static String[] str = {"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r",
            "s","t","u","v","w","x","y","z","+","-","*","/","@","#","$","!","?","|"};//36

    public static String getID(){
        return getRandomStr()+ MyTime.toTimeStampForString(MyTime.getCurrentTime());
    }

    private static String getRandomStr(){
        String strs = "";
        for (int i = 0; i < 3; i++){
            int n = (int) (Math.random() * 36);
            strs += str[n];
        }
        return strs;
    }
}
